<script setup></script>

<template>
  <div class="FlightOeder">
    <div class="top">
      <TicketPageTop :title="'Confirm the order'" />
    </div>

    <div class="flightInfo">
      <FlightInfo :info="'2023.07.31 Monday Time 2h20m Economy Class(Y)'" />
    </div>

    <div class="about">
      <div class="item">
        Adult tickets Pi 68 &nbsp;&nbsp;&nbsp; ER't tickets Pi 58
      </div>
      <div class="item">
        Mechanistic fuel Pi 80(ER't tickets Pi 10,Infant tickets Pi 0)
      </div>
      <div class="item">Baggage allowance:20kg Non-refundable</div>
    </div>

    <div class="addTravelers">
      <div class="title">Traveling travelers</div>
      <div class="btn" @click="$router.push('/selectTraveler')">
        <img src="/images/Shop/addTravelersBtn.png" alt="" />
        <div class="text">Add travelers</div>
      </div>
    </div>

    <div class="contact">
      <div class="title">Contact</div>
      <div class="content">
        <div class="item">
          <div class="title">Name</div>
          <div class="text">Anger</div>
          <img src="/images/Shop/edit.png" alt="" class="btn" />
        </div>

        <div class="item">
          <div class="title">Phone number</div>
          <div class="text">+86 159****1111</div>
          <img src="/images/Shop/edit.png" alt="" class="btn" />
        </div>

        <div class="item">
          <div class="title">Email</div>
          <div class="text">11111@163.com</div>
          <img src="/images/Shop/edit.png" alt="" class="btn" />
        </div>
      </div>
    </div>

    <div class="tips">
      <div class="title">tips</div>
      <div class="content">
        Please confirm the passenger and itinerary information, once paid, the
        ticket will not be refunded, there is no additional charge.
      </div>
    </div>

    <div class="contract">
      <div class="btn">
        <img src="/images/Shop/contract.png" alt="" />
      </div>
      <div class="text">
        <span>Read and agree </span>
        User Service Agreement, Flight Disclaimer, Ticket Purchase Notice
      </div>
    </div>

    <div class="payBar">
      <div class="price"><span>Pi</span> 368</div>
      <div class="btn">submit</div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.FlightOeder {
  position: relative;

  > .flightInfo {
    padding: 0 16rem;
  }

  > .about {
    padding-top: 8rem;
    margin: 10rem 16rem 0;
    border-top: 1rem solid #e6e6e6;
    padding-bottom: 10rem;

    > .item {
      font-size: 10rem;
      font-weight: 400;
      line-height: 12rem;
      color: #666;

      margin-bottom: 5rem;

      &:last-of-type {
        color: #adaaaa;
      }
    }
  }

  > .addTravelers {
    background: #fff;
    margin: 0 7rem 15rem 9rem;
    padding: 4rem 10rem 10rem;

    font-size: 14rem;
    font-weight: 400;
    line-height: 16rem;
    box-shadow: 0rem 3rem 10rem -4rem rgba(185, 185, 185, 0.2);

    > .title {
      color: #000;
    }

    > .btn {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 18rem;
      color: #642e8e;

      > img {
        width: 24rem;
        margin-right: 8rem;
      }
    }
  }

  > .contact {
    margin: 0 7rem 0rem 9rem;
    padding-top: 6rem;
    box-shadow: 0rem 3rem 10rem -4rem rgba(185, 185, 185, 0.5);
    border-radius: 12rem;
    font-size: 14rem;
    font-weight: 400;
    line-height: 16rem;

    > .title {
      color: #000;
      margin: 0rem 10rem 7rem;
    }

    > .content {
      padding: 0 22rem;

      > .item {
        display: flex;
        align-items: center;
        padding: 20rem 0;

        border-top: 1rem solid #b0b0b0;

        > .title,
        > .text {
          flex: 1;
        }

        > .btn {
          width: 21rem;
          margin-left: 40rem;
          margin-right: 4rem;
        }
      }
    }
  }

  > .tips {
    margin: 20rem 7rem 18rem 9rem;
    padding: 10rem 12rem;

    font-size: 16rem;
    font-weight: 400;
    line-height: 18rem;

    border: 1rem dashed #642e8e33;

    > .title {
      color: #333;
      margin-bottom: 8rem;
    }

    > .content {
      color: #999;
      padding-left: 12rem;
    }
  }

  > .contract {
    display: flex;
    justify-content: space-between;

    padding-left: 16rem;
    padding-right: 25rem;

    > .btn {
      margin-right: 10rem;
      margin-top: 3rem;

      width: 17rem;
      height: 17rem;

      border: 1rem solid #642e8e;
      border-radius: 50%;

      flex-shrink: 0;
      display: flex;
      justify-content: center;
      align-items: center;

      > img {
        width: 12rem;

        display: none;
      }

      &.con > img {
        display: block;
      }
    }

    > .text {
      font-size: 14rem;
      font-weight: 400;
      line-height: 20rem;
      color: #642e8e;

      > span {
        color: #2e2e2e;
      }
    }
  }

  > .payBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-between;
    padding: 10rem 20rem;

    box-shadow: 0rem -2rem 10rem -5rem rgba(212, 212, 212, 0.5);

    > .price {
      font-size: 20rem;
      font-weight: 500;
      line-height: 28rem;
      color: #642e8e;

      > span {
        font-size: 14rem;
        color: #999;
      }
    }

    > .btn {
      font-size: 16rem;
      font-weight: 400;
      line-height: 22rem;
      color: #fff;
      background: #642e8e;
      padding: 6rem 60rem;
      border-radius: 3rem;
    }
  }
}
</style>
